<template>
	<view class="box" :style="{zIndex:zIndex}">
		<view :style="{background:bgColor}">
			<slot></slot>
			<view class="ss-safe-bottom"></view>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		bgColor:{
			type:String,
			default:'#fff'
		},
		zIndex:{
			type:Number,
			default:0
		}
	})
</script>

<style scoped lang="scss">
	.box {
		position:fixed;
		bottom:0;
		left:0;
		width:100%;
		box-sizing: border-box;
	}
</style>